﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manage_log.aspx.cs" Inherits="Com.CMS263.Web.manage.manage_log" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="style/main.css" rel="stylesheet" type="text/css" />
    <link href="common/validator.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" language="javascript" src="/manage/js/pager.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
            <tr>
                <td height="23" colspan="2" class="table_2">
                    登录日志
                </td>
            </tr>
            <tr>
                <td class="tdside" align="center">
                    <asp:GridView ID="GridView1" Width="100%" runat="server" AutoGenerateColumns="False"
                        OnRowCommand="GridView1_RowCommand" AllowPaging="True" PageSize="100">
                        <Columns>
                            <asp:BoundField DataField="Id" HeaderText="编号" SortExpression="Id" />
                            <asp:TemplateField HeaderText="登录用户" SortExpression="UserId">
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# GetName(Eval("UserId")) %>'></asp:Label>
                                </ItemTemplate>
                                
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="登录时间" SortExpression="Dtime">
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%#Eval("AddDate") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="UserIp" HeaderText="登录IP" SortExpression="UserIp" />
                            <asp:TemplateField HeaderText="编辑" Visible="false">
                                <ItemTemplate>
                                    <asp:Button ID="btnEdit" runat="server" CommandArgument='<%#Eval("id") %>' CommandName="btnEdit"
                                        Text="编辑" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除" Visible="false">
                                <ItemTemplate>
                                    <asp:Button ID="btnDel" runat="server" CommandArgument='<%#Eval("id") %>' CommandName="btnDel"
                                        Text="删除" OnClientClick='return confirm("确认删除吗？");' />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="tdside" align="right">
                    <%=GetPager() %>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
